﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace State
{
    public class RestState : State
    {      
        public RestState(Person person)
        {
            person.SetState(this);
            System.Console.WriteLine("I am rest state.");
        }
        public void Write()
        {
            System.Console.WriteLine("I am resting.I do not want to write anything.");
        }
        public void Play()
        {
            System.Console.WriteLine("I am resting.I  want to play kinds of games.");
        }
    }
}
